package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 套餐实体类
 * @author Xiao
 * @date 2021/9/25
 */
@Data
@TableName("dish")
public class Dish extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;
    private String name;    //菜品名称
    private Long categoryId;    //菜品分类id
    private BigDecimal price;    //菜品价格 --> 小数，定义为BigDecimal类型
    private String code;    //商品码
    private String image;    //图片
    private String description;    //描述信息
    private Integer status;    //0 停售 1 起售
    private Integer sort;    //顺序
    //@TableField(value = "deleted", select = false)
    private Integer isDeleted;  //逻辑删除
}
